﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AccessControlDemo._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>AccessControlModule Demo</title>
    <link href="css/demo.css" rel="stylesheet" type="text/css" />
    <script src="js/salient/accessControl.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<h2>No AccessControlModule - CounterIntuitive Default ASP.Net Behavior</h2>
<h3>Demo and Tests</h3>
    <ul>
    <li>        <asp:LoginName ID="LoginName1" runat="server" />
        <asp:LoginStatus ID="LoginStatus1" runat="server" />
        <br />
&nbsp;<br />
        </li>
        <li>
            <a href="public/Default.aspx">PUBLIC</a><br />
            Anonymous access allowed<br />
&nbsp;</li>
    <li>
        <a href="users/Default.aspx">USERS</a>
                <br />
        Unauthenticated access renders Login page.<br />
&nbsp;</li>

    <li>
        <a href="admin/Default.aspx">ADMIN</a><br />
        Unauthenticated access renders Login page.<br />
        Under-priveledged access repeatedly renders Login page with no indication why 
        authenticated user is seeing Login.<br />
        If a custom error page is defined for 403 it will never be rendered.<br />
&nbsp;</li>
        <li>
            <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">ERROR</asp:LinkButton>
&nbsp;<br />
            If a custom error page is defined for general error it will be rendered.<br />
&nbsp;</li>
        <li><a href="xxx.htm">NOT FOUND</a>
            <br />
&nbsp;If a custom error page is defined for 404 Not Found it will be rendered.<br />
&nbsp;</li>
<li><a href="tests.htm">AJAX Script Integration Tests</a>
    <br />
    If you compare the results to those of the demo site with AccessControlModule 
    installed the value should be clear.</li>
    </ul>
    </div>
    </form>
</body>
</html>
